<%-- 
    Document   : ProcessLogin
    Created on : 10/10/2008, 13:47:02
    Author     : timoteus78
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
   <%@ page import="javax.persistence.*" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h2>Hello ProcessLogin!</h2>
        <%
        ejb.User currentUser = new ejb.User();
        currentUser.setUName(request.getParameter("userName"));
        currentUser.setPassword(request.getParameter("password"));
        currentUser.setFName("theFN");
        currentUser.setLName("theLN");
        currentUser.setUType(1);
        EntityManagerFactory emf = Persistence.createEntityManagerFactory("Ass2MovieEnt-ejbPU");
        EntityManager em = emf.createEntityManager();
        em.persist(currentUser);
                %>
    </body>
</html>
